home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / tools / x11 / lib / makefile.src
Encoding:
C/C++ Source or Header  |  1993-08-23  |  1.0 KB  |  47 lines

  1. #
  2. # makefile for user-contributed/lbl/x11/lib
  3. #
  4.  
  5. #ifdef XLIBINT_H
  6. XGHC_C = XGetHClrs.c
  7. XGHC_O = XGetHClrs.o
  8. #endif
  9.  
  10. PANEL_OBJ = function.o panel.o
  11. OBJECTS = ccwindow.o cursors.o find_mmm.o image.o in_cmap.o init_img.o \
  12.     magnify.o map_scan.o para_win.o panelset.o scroll.o \
  13.     timer.o visual.o x_window.o x_colors.o XCopyImg.o \
  14.     $(XGHC_O) $(PANEL_OBJ)
  15.  
  16. LOCALINC = -I$(CCS_ROOT)/include -DHELP_INFO="\"h => help"\"
  17. LIBNAME = libpanel.a
  18. LIBFLAG = -DHIPS_IMAGE -DRLE_IMAGE -DC_TUNER -DX_WINDOW_DEP -DCOMMON_TOOL \
  19.     -DXLIBINT_H_NOT_AVAILABLE
  20.  
  21. default:    $(PANEL_OBJ) $(OBJECTS) $(LIBNAME)
  22. install:    $(PANEL_OBJ) $(OBJECTS) $(LIBNAME)
  23.  
  24. $(PANEL_OBJ):
  25.     $(COMPILEc) $< $(LIBFLAG) $(LOCALINC)
  26.  
  27. .c.o:
  28.     $(COMPILEc) -D_DEBUG_ $(LIBFLAG) $(LOCALINC) $*.c
  29.     @-ld -x -r $*.o
  30.     @mv a.out $*.o
  31.  
  32. $(LIBNAME):    $(OBJECTS)
  33.     @rm -f $(LIBNAME)
  34.     ar cr $(LIBNAME) `$(LORDER)  $(OBJECTS) | tsort`;
  35.     mv $(LIBNAME) $(LIBDIR)
  36.     $(RANLIB) $(LIBDIR)/$(LIBNAME)
  37.     @touch $(LIBNAME)
  38.  
  39. clean:
  40.     rm -f $(OBJECTS) $(LIBNAME)
  41. clean-all:    clean_all
  42.  
  43. pristine:
  44.     rm -f $(OBJECTS) $(LIBNAME) $(LIBDIR)/$(LIBNAME)
  45.  
  46. doc:
  47.